<?php /*a:4:{s:64:"D:\phpstudy_pro\WWW\git\DSShop\app\admin\view\inviter\goods.html";i:1591758938;s:64:"D:\phpstudy_pro\WWW\git\DSShop\app\admin\view\public\header.html";i:1571626691;s:69:"D:\phpstudy_pro\WWW\git\DSShop\app\admin\view\public\admin_items.html";i:1566788179;s:64:"D:\phpstudy_pro\WWW\git\DSShop\app\admin\view\public\footer.html";i:1566788179;}*/ ?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <title>DSShop单店铺商城系统后台</title>
        <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
        <link rel="stylesheet" href="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/css/admin.css">
        <link rel="stylesheet" href="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.css">
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery-2.1.4.min.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.validate.min.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.cookie.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/common.js"></script>
        <script src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/js/admin.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery.ui.datepicker-zh-CN.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/perfect-scrollbar.min.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/layer/layer.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/dialog/dialog.js" id="dialog_js" charset="utf-8"></script>

        <script type="text/javascript">
            var BASESITEROOT = "<?php echo htmlentities(BASE_SITE_ROOT); ?>";
            var ADMINSITEROOT = "<?php echo htmlentities(ADMIN_SITE_ROOT); ?>";
            var BASESITEURL = "<?php echo htmlentities(BASE_SITE_URL); ?>";
            var HOMESITEURL = "<?php echo htmlentities(HOME_SITE_URL); ?>";
            var ADMINSITEURL = "<?php echo htmlentities(ADMIN_SITE_URL); ?>";
        </script>
    </head>
    <body>
        <div id="append_parent"></div>
        <div id="ajaxwaitid"></div>





<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3><?php echo htmlentities(lang('ds_inviter_set')); ?></h3>
                <h5></h5>
            </div>
            <?php if($admin_item): ?>
<ul class="tab-base ds-row">
    <?php if(is_array($admin_item) || $admin_item instanceof \think\Collection || $admin_item instanceof \think\Paginator): if( count($admin_item)==0 ) : echo "" ;else: foreach($admin_item as $key=>$item): ?>
    <li><a href="<?php echo htmlentities($item['url']); ?>" <?php if($item['name'] == $curitem): ?>class="current"<?php endif; ?>><span><?php echo htmlentities($item['text']); ?></span></a></li>
    <?php endforeach; endif; else: echo "" ;endif; ?>
</ul>
<?php endif; ?>
        </div>
    </div>
  <div class="fixed-empty"></div>
  
  <form method="get" name="formSearch" id="formSearch">
      <div class="ds-search-form">
            <dl>
                <dt><?php echo htmlentities(lang('ds_goods_name')); ?></dt>
                <dd><input type="text" value="<?php echo htmlentities((app('request')->get('goods_name') ?: '')); ?>" name="goods_name" id="goods_name" class="txt"></dd>
            </dl>
          
            <div class="btn_group">
                 <a href="javascript:void(0);" id="dssubmit" class="btn " title="<?php echo htmlentities(lang('ds_query')); ?>"><?php echo htmlentities(lang('ds_query')); ?></a>     
                 <a href="<?php echo url('Inviter/goods'); ?>" class="btn btn-default" title="<?php echo htmlentities(lang('ds_cancel')); ?>"><?php echo htmlentities(lang('ds_cancel')); ?></a>
            </div>
        </div>
  </form>
  
      
  <form method='post' id="form_goods" action="<?php echo url('Goods/goods_del'); ?>">
    <table class="ds-default-table">
      <thead>
        <tr class="thead">
          <th class="w80"></th>
            <th class="w180"><?php echo htmlentities(lang('ds_goods_name')); ?></th>
            <th class="w180"><?php echo htmlentities(lang('inviter_ratio')); ?></th>
            <th class="w80"><?php echo htmlentities(lang('goods_price')); ?></th>
            <th class="w80"><?php echo htmlentities(lang('inviter_total_quantity')); ?></th>
            <th class="w100"><?php echo htmlentities(lang('inviter_total_amount')); ?></th>
            <th class="w100"><?php echo htmlentities(lang('inviter_amount')); ?></th>
            <th><?php echo htmlentities(lang('ds_handle')); ?></th>
        </tr>
      </thead>
      <tbody>
        <?php if(!(empty($goods_list) || (($goods_list instanceof \think\Collection || $goods_list instanceof \think\Paginator ) && $goods_list->isEmpty()))): if(is_array($goods_list) || $goods_list instanceof \think\Collection || $goods_list instanceof \think\Paginator): if( count($goods_list)==0 ) : echo "" ;else: foreach($goods_list as $key=>$val): ?>
        <tr class="hover edit">
          <td><div class="pic-thumb"><img src="<?php echo goods_thumb($val, 240); ?>"  onload="javascript:ResizeImage(this,56,56);"/></div></td>
            <td><?php echo htmlentities($val['goods_name']); ?></td>
            <td>
            <p><?php echo htmlentities(lang('inviter_ratio_1')); ?><?php echo htmlentities($val['inviter_ratio_1']); ?><?php echo htmlentities(lang('ds_percent')); ?></p>
            <p><?php echo htmlentities(lang('inviter_ratio_2')); ?><?php echo htmlentities($val['inviter_ratio_2']); ?><?php echo htmlentities(lang('ds_percent')); ?></p>
            <p><?php echo htmlentities(lang('inviter_ratio_3')); ?><?php echo htmlentities($val['inviter_ratio_3']); ?><?php echo htmlentities(lang('ds_percent')); ?></p>
            </td>
            <td><?php echo htmlentities(lang('currency')); ?><?php echo htmlentities($val['goods_price']); ?></td>
            <td><?php echo htmlentities($val['inviter_total_quantity']); ?></td>
            <td><?php echo htmlentities(lang('currency')); ?><?php echo htmlentities($val['inviter_total_amount']); ?></td>
            <td><?php echo htmlentities(lang('currency')); ?><?php echo htmlentities($val['inviter_amount']); ?></td>
            <td>
                <a href="<?php echo url('Inviter/goods_edit',['goods_commonid'=>$val['goods_commonid']]); ?>" class="dsui-btn-edit"><i class="iconfont"></i>
                    <?php echo htmlentities(lang('ds_edit')); ?>
                </a>
                <a href="<?php echo url('Inviter/goods_del',['goods_commonid'=>$val['goods_commonid']]); ?>" class="dsui-btn-del"><i class="iconfont"></i>
                    <?php echo htmlentities(lang('ds_del')); ?>
                </a>
            </td>
        </tr>
        <tr style="display:none;">
          <td colspan="8"><div class="dssc-goods-sku ps-container"></div></td>
        </tr>
        <?php endforeach; endif; else: echo "" ;endif; else: ?>
        <tr class="no_data">
          <td colspan="15"><?php echo htmlentities(lang('ds_no_record')); ?></td>
        </tr>
        <?php endif; ?>
      </tbody>
      
    </table>
    <?php echo $show_page; ?>
  </form>
</div>
<script type="text/javascript" src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/dialog/dialog.js" id="dialog_js" charset="utf-8"></script>
<script type="text/javascript" src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.mousewheel.js"></script>
<script type="text/javascript" src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/mlselection.js" charset="utf-8"></script>

<script>
$(function(){
    $('#dssubmit').click(function(){
        $('#formSearch').submit();
    });
});
</script>



